//
//  DisJobTableViewCell.m
//  陶瓷
//
//  Created by 郭天龙 on 15/8/1.
//  Copyright (c) 2015年 王戈. All rights reserved.
//

#import "DisJobTableViewCell.h"
#import "TCBaseTool.h"

@interface DisJobTableViewCell ()

@property (nonatomic, weak) IBOutlet UILabel *name;
@property (nonatomic, weak) IBOutlet UILabel *follow;
@property (nonatomic, weak) IBOutlet UILabel *price;
@property (nonatomic, weak) IBOutlet UILabel *unit;
@property (nonatomic, weak) IBOutlet UILabel *time;

@end

@implementation DisJobTableViewCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

- (void)setModel:(NSDictionary *)dic
{
    
    self.name.text = [dic objectForKey:@"CompanyName"];
    self.price.text = [dic objectForKey:@"Wage"];
    self.unit.text = @"元/月";
    NSString *times = [TCBaseTool calculateTime:[dic objectForKey:@"CreateTime"]];
    self.time.text = [NSString stringWithFormat:@"发布时间 %@",times];
    self.follow.text = [NSString stringWithFormat:@"已有%@人浏览",[dic objectForKey:@"BrowseNumber"]];
    
}


@end
